<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		.nav{
			width: 100%;
			height: 50px;
			background: black;
			line-height: 50px;
		}
		.first{
			color: #fff;
			list-style: none;
			float: right;
			padding: 0 40px;
			background: #666;
			margin: 0 20px;
			position: relative;
			right: 150px;
		}
		.nav2 li{
			list-style: none;
			border: 1px solid black;
			height: 50px;


		}
		.nav2{
			width: 350px;
			position:absolute;
			bottom: -50px;
			right: 0;
			background: white;
			text-align: center;
			display: none;
			color: black;
/*			border: 1px solid black;*/
		}
		.first:hover .nav2{
			display: block;
		}
	</style>
</head>
<body>
	<div class="nav">
		<ul class="first">
			<li>购物车(0)</li>
			<div class="nav2">
				<ul>
					<li>快来购物</li>
				</ul>
			</div>
		</ul>
	</div>
</body>
</html>